<?php
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($plugin_name && $plugin_name!='core'){
	$return['footernav']=$this->plugin($plugin_name)->plugin_setting('basic')['footernav'];
}
//全局返回mid
$return['mid']=$_SESSION['mid'];
$return['setting']=$this->setting;
$return['shopset']=plugin('jy_weishop')->plugin_setting('shopset');
$return['setting']['logo']=$return['shopset']['logo'];
$return['setting']['title']=$return['shopset']['title'];
$return['setting']['toplogo']=$return['setting']['toplogo']?:$return['setting']['logo'];
$return['setting']['no_tanmu']=$return['shopset']['no_tanmu'];
if($return['shopset']['closeshop']==1 && $_RQ['action'] !='close'){
	exi('','error','jy_weishop/close/');
}
$return['current_plugin']=$_SESSION['current_plugin'];
$return['lat_lng']=$this->session('lat_lng');
$sharelink='jy_shopmerch/index//fromuser='.$_SESSION['uid'];
$return['sharedata']=array(
	'title'=>$return['setting']['share_title']?$return['setting']['share_title']:'首页-在线商城',
	'desc'=>$return['setting']['share_desc']?$return['setting']['share_desc']:'在线商城，一个属于自己的个人商城！',
	'link'=>custom_url($sharelink,true),
	'imgUrl'=>tomedia($return['setting']['share_image'])
);
$return['shopindex_url']='jy_shopmerch/index/';
$return['groups_url']='jy_shopmerch/shop.groups/';
$return['memberindex_url']='jy_shopmerch/member.index/';
$return['goodsindex_url']='jy_shopmerch/goods.index/';
$return['goodsdetail_url']='jy_shopmerch/goods.detail/';
$return['orderlist_url']='jy_shopmerch/order.list/';
$return['orderdetail_url']='jy_shopmerch/order.detail/';
$_SESSION['ocreateurl']='jy_shopmerch/order.create//';
$return['pluginset']=$this->setting;
$return['footernav']=$return['pluginset']['footernav'];
$_SESSION['merchfooternav']=$return['footernav'];
?>